<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class WebClient</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> WebClient</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Simple HTTP related functions integrated class object.</p>
<p class="description"><p>Main features: CURL component implements the remote request, single or multiple file upload method.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Lei Lee</li>
				<li><span class="field">version:</span> 1.0</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_core---WebClient.class.php.html">/core/WebClient.class.php</a> (line <span class="field">10</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#FILE_UPLOAD_MULTIPLE" title="details" class="const-name">FILE_UPLOAD_MULTIPLE</a> = 					<span class="var-type"> 2</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#FILE_UPLOAD_SINGLE" title="details" class="const-name">FILE_UPLOAD_SINGLE</a> = 					<span class="var-type"> 1</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#send" title="details" class="method-name">send</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$isPost</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$dataParam</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$use_ck</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$ckfile</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">60</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$useSSL</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$proxy</span> = <span class="var-default">array()</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#upload" title="details" class="method-name">upload</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$form_name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$store_directory</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$is_hash_subdir</span> = <span class="var-default">false</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$style</span> = <span class="var-default">1</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$max_bytes</span> = <span class="var-default">1024000</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$allow_exts</span> = <span class="var-default">array('gif', 'jpg', 'jpeg', 'png')</span>])
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodsend" id="send"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">send</span> (line <span class="line-number">36</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Send remote HTTP requests.</p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			send
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$isPost</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$dataParam</span> = <span class="var-default">array()</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$use_ck</span> = <span class="var-default">false</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$ckfile</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$timeout</span> = <span class="var-default">60</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$useSSL</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$proxy</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$isPost</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$dataParam</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$use_ck</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$ckfile</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$timeout</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$useSSL</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$proxy</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupload" id="upload"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">upload</span> (line <span class="line-number">94</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Upload files.</p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			upload
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$form_name</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$store_directory</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$is_hash_subdir</span> = <span class="var-default">false</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$style</span> = <span class="var-default">1</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$max_bytes</span> = <span class="var-default">1024000</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$allow_exts</span> = <span class="var-default">array('gif', 'jpg', 'jpeg', 'png')</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$form_name</span><span class="var-description">: Name of the form.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$store_directory</span><span class="var-description">: Files are stored directory path.</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$is_hash_subdir</span><span class="var-description">: Whether to automatically create a subdirectory store?</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$style</span><span class="var-description">: Form mode. (1, Single file upload mode. 2, Upload file array mode. 3, Different file name of the form, and multi-file upload.)</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$max_bytes</span><span class="var-description">: Limit upload file size. (Default: 1 MB)</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$allow_exts</span><span class="var-description">: Array of allowed file extensions. (Default: GIF, JPG, PNG | Don't contain &quot;.&quot; characters)</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constFILE_UPLOAD_MULTIPLE" id="FILE_UPLOAD_MULTIPLE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">FILE_UPLOAD_MULTIPLE</span>
			 = <span class="const-default"> 2</span>
			(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Multiple file upload mode.</p>
	
	
</div>
<a name="constFILE_UPLOAD_SINGLE" id="FILE_UPLOAD_SINGLE"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">FILE_UPLOAD_SINGLE</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">15</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Single upload mode.</p>
	
	
</div>
						
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Mon, 30 May 2011 15:07:25 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>